﻿using System.Windows.Controls;

namespace _4chanManager.Panels
{
    /// <summary>
    /// Interaction logic for AddTabMenu.xaml
    /// </summary>
    public partial class AddTabMenu : UserControl
    {
        private readonly TabItem _parent;
        public AddTabMenu()
        {
            InitializeComponent();
        }

        public AddTabMenu(TabItem parent) : this()
        {
            _parent = parent;
        }

        private void btnGifConvert_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            _parent.Content = new GifConvertControl();
        }

        private void btnDownloader_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            _parent.Content = new ThreadWatcherPanel();
        }

        private void btnMonitorThread_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            _parent.Content = new WaitForThreadPanel();
        }
    }
}
